package tvdi

class LoginTagLib {
	def loginControl = {
		if(request.getSession(false) && session.usuario){
			out << "Olá ${session.usuario.login} "
			out << """[${link(action:"logout", controller:"usuario"){"Logout"}}]"""
		}
		else{
			out << """[${link(action:"login", controller:"usuario"){"Login"}}]"""
		}
	}

}
